package listboxlib.constant;

public class ListBoxConstant {
    /**
     * 条件查询值类型
     */
    public enum Field_Data_Type{
        String(1),
        Double(2),
        Long(3),
        Float(4),
        Date(5);
        public Integer key;
        Field_Data_Type(Integer key){
            this.key = key;
        }
    }

    /**
     * 格式化映射类型
     */
    public enum Format_Type{
        Json("jsonMap://"),
        Sql("sqlMap://");
        public String prefix;
        Format_Type(String prefix){
            this.prefix = prefix;
        }
    }
    /**
     *条件查询模式
     */
    public enum Field_Find_Model {
        Text_Fuzzy(0,"文本框模糊查询"),
        Text_Exact(1,"文本框精确查询"),
        Text_Not_Euqal(2,"文本框不等于查询"),
        Range(3,"范围"),
        Option_Fuzzy(4,"下拉框模糊查询"),
        Option_Exact(5,"下拉框精确查询");
        public Integer key;
        public String desc;
        Field_Find_Model(Integer key,String desc) {
            this.key=key;
            this.desc=desc;
        }
    }

    public enum Direction {
        DESC("desc"),
        ASC("asc");

        public String type;

        Direction(String type) {
            this.type = type;
        }
    }
}
